
function reply()
{
	$.ajax({
		type:"POST",
		url:"../admin/replyServe.php",
		data:{'reviewId':$("#reviewId").val()},
		success:function(text){
			$("#writeReply").html(text);
		}
	});
}

function checkForm(){
	if(replyForm.replyContent.value=="")
	{
		confirm('内容不能为空');
		return false;
	}
	else
	{
		confirm('确认提交评论吗？一旦提交，不可修改，不可删除');
	}
	
}

function zan()
{
	$.ajax({
		type:"POST",
		url:"../admin/zanServe.php",
		data:{'reviewId':$("#reviewId").val()},
		success:function(text){
			$("#dolikeDIV").html(text);
		}
	});
	
}

function zanDel()
{
	$.ajax({
		type:"POST",
		url:"../admin/zanServe.php",
		data:{'uId':$("#uId").val(),'reviewId':$("#reviewId").val()},
		success:function(text){
			$("#dolikeDIV").html(text);
		}
	});
	
}

function ReviewDel(reviewId,bookId){
	if(window.confirm("确认删除该书评吗?删除成功后将返回书本信息详情页")){
		location.href="../admin/doDeleteReview.php?reviewId="+reviewId+"&bookId="+bookId;
		
	}
}

function ReviewUp(reviewId,bookId){
	location.href="../style/postExperience?reviewId="+reviewId+"&bookId="+bookId;		
}

function ReplyDel(reviewId,replyId){
	if(window.confirm("确认删除该评论?")){
		location.href="../admin/doDeleteReply.php?reviewId="+reviewId+"&replyId="+replyId;
		
	}
}

